package com.aaa.vo;

import com.aaa.entity.CouponHistory;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 荆豪峰
 * @version 1.0
 * #Date: 2023/3/9 20:49
 */
@ApiModel(description = "#Date: 2023/3/9 20:49")
@Data
public class CouponHistoryVo extends CouponHistory {
    @ApiModelProperty(hidden = true)
    private Integer type;
    @ApiModelProperty(hidden = true)
    private Integer platform;
    @ApiModelProperty(hidden = true)
    private BigDecimal amount;
    @ApiModelProperty(hidden = true)
    private Integer minPoint;
    @ApiModelProperty(hidden = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd ")
    @JsonFormat(pattern = "yyyy-MM-dd ", timezone = "GMT+8")
    private Date startTime;
    @ApiModelProperty(hidden = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd ")
    @JsonFormat(pattern = "yyyy-MM-dd ", timezone = "GMT+8")
    private Date endTime;
    @ApiModelProperty(hidden = true)
    private Integer useType;
}
